﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="WebApplication1.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <br />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="CarName" HeaderText="Car Name" SortExpression="CarName" />
            <asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
            <asp:BoundField DataField="BHP" HeaderText="BHP" SortExpression="BHP" />
            <asp:HyperLinkField DataNavigateUrlFields="Origin" DataNavigateUrlFormatString="http://maps.google.co.uk/maps?q={0}" DataTextField="Origin" HeaderText="Origin" />
            <asp:BoundField DataField="EngineSize" HeaderText="Engine Size" SortExpression="EngineSize" />
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
            <asp:ImageField DataImageUrlField="Pictures" HeaderText="Picture">
                <ControlStyle CssClass="carpics" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CarsConnectionString %>" ProviderName="<%$ ConnectionStrings:CarsConnectionString.ProviderName %>" SelectCommand="SELECT [Pictures], [Description], [CarName], [Year], [EngineSize], [BHP], [Origin], [URL] FROM [Table1] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID2" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>
